package com.example.scheduler.executor.impl;

import com.example.scheduler.entity.TaskConfig;
import com.example.scheduler.executor.TaskExecutor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class DataSyncTaskExecutor implements TaskExecutor {
    @Override
    public String getTaskName() {
        return "dataSyncTask";
    }

    @Override
    public void execute(TaskConfig taskConfig) {
        log.info("执行数据同步任务");
        // 在这里实现具体的数据同步任务业务逻辑
    }
}